//
//  SetVC.swift
//  AirTravel
//
//  Created by tulip on 2021/9/6.
//

import UIKit

class SetVC: CommonVC {

    @IBOutlet weak var quitBtn: UIButton!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.view.backgroundColor=UIColor.init(hexString: "f7f7f7")
        head.backgroundColor=UIColor.white
        head.title.text="设置"
        
        quitBtn=gradientColor(colo1: "ff8e4a", colo2: "ff6635", view: quitBtn, width: SCREEN_WIDTH-30) as! UIButton
        quitBtn.layer.cornerRadius=6
        quitBtn.layer.masksToBounds=true
        
    }


    
    @IBAction func quit(_ sender: Any) {
        
        UserDefaults.standard.setValue(false, forKey: "isLogin")
        let vc=Login_PWD_VC.init()
        let nav=UINavigationController.init(rootViewController: vc)
        UIApplication.shared.keyWindow?.rootViewController=nav
        
        
    }
    
    
    @IBAction func tapInfo(_ sender: Any) {
        let vc = RVUserInfoController()
        navigationController?.pushViewController(vc, animated: true)
    }
    
    @IBAction func tapAccountSafe(_ sender: Any) {
        let vc = RVAccountSateController()
        navigationController?.pushViewController(vc, animated: true)
    }
    
    @IBAction func tapClear(_ sender: Any) {
    }
    
    @IBAction func tapAboutUS(_ sender: Any) {
    }
}
